@echo off

PATH=%PATH%;C:\Windows\Microsoft.NET\Framework\v4.0.30319


echo Building sgMotion
msbuild sgMotion.sln /m /v:minimal /p:configuration=release "/p:platform=x86" /p:XNAContentPipelineTargetPlatform=Windows /p:XNAContentPipelineTargetProfile=HiDef 
msbuild sgMotion.sln /m /v:minimal /p:configuration=release "/p:platform=Xbox 360" /p:XNAContentPipelineTargetPlatform=Xbox360 /p:XNAContentPipelineTargetProfile=HiDef 

rmdir BinaryRelease /s /q
mkdir BinaryRelease
mkDir BinaryRelease\x86
mkdir BinaryRelease\xbox360

echo Copying sgMotion
copy sgMotion\bin\x86\release\sgMotion.dll BinaryRelease\x86
copy "sgMotion\bin\Xbox 360\Release\sgMotion.dll" BinaryRelease\xbox360
copy sgMotionPipeline\bin\x86\release\sgMotionPipeline.dll BinaryRelease\x86
copy changelog.txt BinaryRelease
copy Readme.txt BinaryRelease
copy Microsoft-publiclicense.txt BinaryRelease

pause 



